home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / zendisk1.zip / LST2-8.ASM < prev    next >
Assembly Source File  |  1990-02-15  |  513b  |  30 lines

  1. ;
  2. ; *** Listing 2-8 ***
  3. ;
  4. ; Measures the performance of 20000 loads of AL from
  5. ; memory. (Use by renaming to TESTCODE, which is
  6. ; included by LZTEST.ASM (Listing 2-6). LZTIME.BAT
  7. ; (Listing 2-7) does this, along with all assembly
  8. ; and linking.)
  9. ;
  10. ; Note: takes about 10 minutes to assemble on a PC with
  11. ;    MASM 5.0.
  12. ;
  13.     jmp    Skip    ;jump around defined data
  14. ;
  15. MemVar    db    ?
  16. ;
  17. Skip:
  18. ;
  19. ; Start timing.
  20. ;
  21.     call    ZTimerOn
  22. ;
  23.     rept    20000
  24.     mov    al,[MemVar]
  25.     endm
  26. ;
  27. ; Stop timing.
  28. ;
  29.     call    ZTimerOff
  30.